﻿<UserControl x:Class="Kiva7.Pages.BorrowersControl"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    d:DesignHeight="480" d:DesignWidth="480">

    <Grid>

        <ListBox x:Name="lbxBorrowers" Margin="0,0,-12,0" 
             Background="{StaticResource KivaBackgroundBrush}" 
             ItemsSource="{Binding BorrowerItems}" 
             HorizontalContentAlignment="Stretch" >

            <ListBox.ItemTemplate>

                <DataTemplate>

                    <StackPanel Orientation="Horizontal" Style="{StaticResource KivaListItemStyle}" Width="456">
                        <TextBlock Text="{Binding FirstName}" Style="{StaticResource KivaTextGroupHeaderStyle}"/>
                        <TextBlock Text="{Binding LastName}" Style="{StaticResource KivaTextGroupHeaderStyle}"/>
                    </StackPanel>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</UserControl>
